home *** CD-ROM | disk | FTP | other *** search
- Path: news.ov.com!news
- From: glenn@ov.com (Fletcher.Glenn@ov.com)
- Newsgroups: comp.lang.c
- Subject: Re: Another Character String Question
- Date: 10 Feb 1996 00:37:11 GMT
- Organization: OpenVision
- Message-ID: <4fgpbn$r4r@spanky.pls.ov.com>
- References: <4fdfq4$mis@er5.rutgers.edu>
- Reply-To: glenn@ov.com
- NNTP-Posting-Host: foghorn.pls.ov.com
-
- In article mis@er5.rutgers.edu, wempa@eden.rutgers.edu (Force Of Nature) writes:
- >Thanks to all who responded to my Character -> Integer Question. The function
- >atoi() worked beautifully. I have another question. I need to take a pointer
- >to a string of characters and add ONLY 1 additional character to it. I know
- >that I can simply go down until I find the '\0' and add the extra character
- >followed by the '\0'. Is there an easier way to do this ?? I tried simply
- >doing:
- > *temp = *text + ')';
- >
- >This did not work. Is there some other simple way to add characters onto the
- >end of a string ???
- >
- >--
- >--------------------------------------------------------------------
- >Kristofer Wempa
- >wempa@eden.rutgers.edu http://remus.rutgers.edu/~wempa
- >-------------------Be Young, Have Fun, Skydive !--------------------
-
-
- Try strcat(text, ")");
-
- Fletcher.Glenn@ov.com
-
-
-
-